package com.allst.dubbo.impl;

import com.allst.dubbo.service.HelloService;
import org.apache.dubbo.config.annotation.Service;

/**
 * 接口实现类
 *
 * @author June
 * @since 2021年03月
 */
@Service
public class HelloServiceImpl implements HelloService {
    @Override
    public String seyHello(String name) {
        return "hello : " + name;
    }

    @Override
    public String sayHiOfTime(String name, int timeToWait) {
        try {
            Thread.sleep(timeToWait);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        return "hi : " + name;
    }
}
